package com.example.mywechatprogram.controller;

import com.example.mywechatprogram.entity.Response;
import com.example.mywechatprogram.service.SculptureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SculptureController {
    @Autowired
    private SculptureService sculptureService;
    @GetMapping("/Sculpture/get")
    public Response request(){return sculptureService.request();}
    @GetMapping("/Sculpture/query")
    public Response query(String user_id){return sculptureService.query(user_id);}

    @PostMapping("/Sculpture/update")
    public Response update(String user_id,int id){return sculptureService.update(user_id,id);}
}
